<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" href="/favicon.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1" />
  <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
  <meta http-equiv="Pragma" content="no-cache" />
  <meta http-equiv="Expires" content="0" />
  <meta http-equiv="x-ua-compatible" content="ie=edge" />
  <link rel="stylesheet" href="./public/loading.css" />
  <title>米鹿开黑</title>
  <style>
    :root {
      --dot-color: #5e5e5e;
      --bg-color: #ffffff;
    }
  </style>
</head>

<body>
  <div id="app">
    <section class="loader">
      <div class="loader-center">
        <div class="chars">
          <span class="dots">
            <span class="char dot _dot-1">.</span>
            <span class="char dot _dot-2">.</span>
            <span class="char dot _dot-3">.</span>
          </span>
        </div>
      </div>
    </section>
  </div>
  <script type="module" src="/src/main.js"></script>
</body>
<script>
  window.οnlοad = function () {
    document.addEventListener('touchstart', function (event) {
      if (event.touches.length > 1) {
        event.preventDefault()
      }
    })
    var lastTouchEnd = 0
    document.addEventListener(
      'touchend',
      function (event) {
        var now = new Date().getTime()
        if (now - lastTouchEnd <= 300) {
          event.preventDefault()
        }
        lastTouchEnd = now
      },
      false
    )
    document.addEventListener('gesturestart', function (event) {
      event.preventDefault()
    })
  }
  //以下代码为删除嵌入广告
  var del_times = 0,
    deTimer = null
  function adGo() {
    var iframe = document.getElementsByTagName('iframe')[0]
    if (iframe) {
      //循环 iframe 父类，直到找到body和body的下一级，然后整个嵌入的代码删除。
      var bodyNode = { tagName: '' },
        iframeParent,
        targetNode = iframe.parentNode
      while (bodyNode.tagName != 'BODY') {
        bodyNode = targetNode
        if (bodyNode.tagName != 'BODY') {
          iframeParent = targetNode
          targetNode = targetNode.parentNode
        }
      }
      if (iframeParent)
        //如果iframe有父类
        bodyNode.removeChild(iframeParent)
      else bodyNode.removeChild(iframe)
    }
    del_times++
    if (del_times > 10) window.clearInterval(deTimer)
  }
  deTimer = self.setInterval(adGo, 200) //把这个1000, 调低一点，比如200
</script>
<!-- vConsole 手机端打印 -->
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.9.0/vconsole.min.js"></script>
<script>
  var vConsole = new VConsole()
  console.log('Hello world')
</script> -->

</html>
